import Tkinter
class Application(Tkinter.Frame):
	def __init__(self,master=None):
		Tkinter.Frame.__init__(self,master)
		self.pack()
		self.createwidgets()
		
	def createwidgets(self):
		self.quitButton=Tkinter.Button(self,text="Quit",
			command=self.quit)
		self.quitButton.pack()
app=Application()
app.master.title("sample application")
app.mainloop()